home *** CD-ROM | disk | FTP | other *** search
- # CVS $Id: info.tcl,v 1.3 1995/02/03 16:54:51 zibi Exp $
- #
- # Simple test of the VtInfo command
- #
- proc okCB {cbs} {
- set dlog [keylget cbs dialog]
-
- set charm [VtInfo -charm]
- set version [VtInfo -version]
- set colors [VtInfo -colors]
- set height [VtInfo -displayHeight]
- set width [VtInfo -displayWidth]
-
- set msg "Charm is $charm\nVersion is $version\nNumber of Colors: $colors
- Dimension: $width X $height"
-
- set dlog [VtMessageDialog $dlog.mess \
- -message $msg \
- -font medBoldFont -modeless ]
-
- VtShow $dlog
- }
-
- proc cancelCB {cbs} {
- VtClose
- }
-
- set ap [VtOpen info]
-
- set charm [VtInfo -charm]
- set version [VtInfo -version]
- set colors [VtInfo -colors]
- set height [VtInfo -displayHeight]
- set width [VtInfo -displayWidth]
-
- set msg "Charm is $charm\nVersion is $version\nNumber of Colors: $colors
- Dimension: $width X $height"
-
- set dlog [VtMessageDialog $ap.mess \
- -message $msg \
- -okCallback okCB \
- -cancelCallback cancelCB \
- -font medBoldFont -modeless -autoDestroy off -autoHide off ]
-
-
- VtShow $dlog
-
- VtMainLoop
-